package resources;

import java.io.InputStream;
import java.net.URI;
import java.net.URISyntaxException;

import javax.swing.Icon;
import javax.swing.ImageIcon;

public class ResourcesFactory {
	
		//APP icon
		public static ImageIcon getAppIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("sad_robot_32.png"));
		}
		
		//Open icon
		public static Icon getOpenIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("open-file.png"));
		}
		
		//APP Image
		public static Icon getAppImage() {
			return new ImageIcon(ResourcesFactory.class.getResource("sad_robot_256.png"));
		}
		
		//Script 1
		public static InputStream getExampleScript1() {
			return ResourcesFactory.class.getResourceAsStream("scripts/example_script_1.xml");
		}
		
		//Play icon
		public static ImageIcon getPlayIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("control.png"));
		}
		
		//Play icon
		public static ImageIcon getPlaySmallIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("control_play_green.png"));
		}
		
		//Stop icon
		public static ImageIcon getStopIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("control-stop-square.png"));
		}
		
		//Pause icon
		public static ImageIcon getPauseIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("control-pause.png"));
		}
		
		//Script icon
		public static ImageIcon getScriptIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("script_code_red.png"));
		}
		
		//Clear icon
		public static ImageIcon getClearIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("cross-script.png"));
		}
		
		//Delete icon
		public static ImageIcon getDeleteIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("delete-file.png"));
		}
		
		//Move Up
		public static ImageIcon getMoveUpIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("arrow_up.gif"));
		}
		
		//Move Down
		public static ImageIcon getMoveDownIcon(){
			return new ImageIcon(ResourcesFactory.class.getResource("arrow_down.gif"));
		}
				
		//Lorem Ipsum
		public static URI getLoremIpsumURI() {
			try {
				return ResourcesFactory.class.getResource("Lorem Ipsum.txt").toURI();
			} catch (URISyntaxException e) {
				e.printStackTrace();
			}
			return null;
		}
		
		
}
